package com.zhongen.wflow.workflow.config;

import com.zhongen.wflow.workflow.config.callActivity.WflowActivityBehaviorFactory;
import org.flowable.spring.SpringProcessEngineConfiguration;
import org.flowable.spring.boot.EngineConfigurationConfigurer;
import org.springframework.stereotype.Component;

/**
 * 添加流程引擎默认配置
 *
 * @author : willian fu
 * @date : 2023/12/19
 */
@Component
public class WflowEngineConfigurationConfigurer
		implements EngineConfigurationConfigurer<SpringProcessEngineConfiguration> {

	@Override
	public void configure(SpringProcessEngineConfiguration engineConfiguration) {
		engineConfiguration.setActivityBehaviorFactory(new WflowActivityBehaviorFactory());
	}

}
